﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Maticsoft.Common;

namespace Maticsoft.Web.wap
{
    public partial class UserAccount : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Check();

            InitData();
        }

        protected void InitData()
        {
            BLL.Members meBLL = new BLL.Members();
            Model.Members meModel = meBLL.GetModel(DigitHelper.GetInt32(UserId));
            aAccountName.InnerText = meModel.UserName;
            aName.InnerText = meModel.RealName;
            aSex.InnerText = meModel.Sex == "1" ? "男" : "女";
            aBirthday.InnerText = meModel.Birthday;
            aEmail.InnerText = meModel.Email;
            aQQ.InnerText = meModel.QQ;
            aWeixin.InnerText = meModel.Weixin;
            spRegisterDate.InnerText = ((DateTime)meModel.CreateTime).ToString("yyyy-MM-dd");
            spTotalMoney.InnerText = DigitHelper.GetInt32(meModel.Credits).ToString();
        }
    }
}